/*
Theme Name: YASimple
Author: Tanky Woo<me@tankywoo.com>
Author URI: https://tankywoo.com
Home Page: https://github.com/tankywoo/yasimple
Description: Yet another simple theme for simiki.
Version: 0.1
License: The MIT License (MIT)
Tags: simple, single-columns, code, codehighlight, white, markdown
*/

/* Global Configuration */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* IE6 ignores this and uses default size of 16pt */
html>body { font-size: 15px; }

html {
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    /* font-family: "Helvetica Neue", "Segoe UI", Arial, Sans-Serif; */
    /* font-family: Monaco, 'Courier New', monospace; */
    background-color: #95afba;
}


a { color: #1863a1; text-decoration: none; }
a:visited { color: #1863a1; }
a:hover { color: #a00; text-decoration: underline; }
a:active { color: #1863a1; }

p { margin: 0 0 1em 0; }

blockquote {
    color: #666;
    margin: 0;
    padding-left: 1em;
    border-left: 0.3em #eee solid;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1em;
    border: 1px solid #eee;
}

td {
    vertical-align: top;
    padding: 3px 6px;
}

/* Optimization for pre and code tag */
pre, code { 
    /* font-family: Consolas, "DejaVu Sans Mono", "Lucida Console", Monaco, Andale Mono, "MS Gothic", monospace; */
    /* font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; +++++ */
    font-size: 90%;
    color: #586E75;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    overflow: auto;
}

code {
    background-color: #eee;
    margin: 0 2px;
    padding: 1px 3px;
}

pre {
    padding: 8px 12px;
    white-space: pre;
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -pre-wrap;     /* ancient Opera */
    white-space: -o-pre-wrap;   /* newer Opera */
    white-space: pre-wrap;      /* Chrome; W3C standard */
    word-wrap: break-word;      /* IE */
}

pre code {
    border: 0px !important;
    padding: 0;
    color: #000;
    /* background-color: #f8f8f8; */
}

/* Custom Configuration */
#header {
    border-bottom: 1px solid #ccc;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

#header a {
    border-bottom: none;
}

#footer {
    margin: 10px auto;
    color: #fbfffd;
    font-size: 80%;
    text-align: center;
}

#footer p {
    margin: 0;
}

#footer a, #footer a:visited, #footer a:hover, #footer a:active {
    color: #fbfffd;
    border-bottom: 1px dashed #fbfffd;
    text-decoration: none;
}

#container {
    width: 60%;
    /* max-width: 960px; */
    margin: 0 auto 1em auto;
    padding: 1em 2em;
    background-color: #fbfffd;
    border: 1px solid #eee;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.category_item a {
    color: #333;
}

.category_item a:hover {
    color: #333;
    border-bottom: 1px dashed #a1a1a1;
}

#site_title {
    text-align: center;
    font-size: 1.5em;
    padding-bottom: 10px;
}

li.pagelist {
    width: 22em;
    margin-right: 1.5em;
    list-style-type: none;
    white-space: nowrap;
    overflow: hidden;
}

li.pagelist:before {
    /* content: "\0BB \020"; */
}

.category {
    border-top: 1px solid #ccc;
    padding-top: 1em;
}

.category_name {
    float: right;
    text-align: right;
    width: 300px;
    word-wrap: break-word;
}

.category_list {
    /* float: left; */
}

#container .category h2{ color: #ccc; }

#content img {
    border: 0;
    vertical-align: middle;
    margin: 0 auto;
    max-width: 90%;
    display: block;
}

#content h2 {
    font-size: 1.8em;
}

#content h3 {
    font-size: 1.4em;
}

#content h2:before, #content h3:before {
  color: #42b983;
  margin-right: 0.3em;
  font-weight: bold;
}

#content h2:before { content: "##"; }

#content h3:before { content: "###"; }

#toggle-button {
    float: right;
    border: 1px solid silver;
    padding: 0 3px;
}

/* Table of Contents */
.toc {
    margin: 0 0.5em;
    padding: 0.5em 1em;
    border: 1px dashed silver;
    background-color: #ecf5ff;
    float: right;
    display: block;
    font-size: 75%;
}

.toc > .toctitle {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1em;
}

.toc ul {
    margin: 0;
    padding-left: 1.5em;
}

.toc a{
    border: none;
}

/* Hackers */
/* Hacker for codehilite */
.hlcodetable {
    border: 0;
    border-collapse: separate !important;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.hlcodetable td { padding: 0; border: 0 none; margin: 0; }

.hlcodetable .linenodiv {
    border-right: 1px solid #ddd;
}

.hlcodetable .linenodiv pre, .hlcodetable .hlcode pre { margin: 0; border: none; }

.hlcode {
    /* margin: 0 0 1em 0; */
    margin: 0;
    color: #586E75;
}

table.hlcodetable {
    border: 1px solid #ddd;
}

.hlcode, table.hlcodetable {
    margin: 0;
}

.hlcodetable .linenos {
    width: 5%;
}

.hlcode pre{
    background-color: #fbfffd;
}

/* Pygments them, Punctuation and Name */
.hlcode pre .p, .hlcode pre .n { color: #586E75; }

/* Clear the float problem */
.clearfix:after {
    visibility: hidden;
    clear: both;
    font-size: 0;
    content: ".";
    display: block;
    height: 0;
}
